//
//  Overload_IO_operate.hpp
//  learnC++
//
//  Created by apple on 2018/6/4.
//  Copyright © 2018年 yunfan.com. All rights reserved.
//

#ifndef Overload_IO_operate_hpp
#define Overload_IO_operate_hpp

#include <stdio.h>
#include <iostream>

class Point
{
private:
    double m_x, m_y, m_z;
    
public:
    Point(double x=0.0, double y=0.0, double z=0.0): m_x(x), m_y(y), m_z(z)
    {
    }
    
    friend std::ostream& operator<< (std::ostream &out, const Point &point);
    
    //一元操作符  还有正数(+) 负数(-) 非(!)
    Point operator-()const;
    
//    std::cout 为 std::ostream类型
//    std::cin 为 std::istream类型
};


#endif /* Overload_IO_operate_hpp */
